import "./zsj.css";
import { getData } from "../../../../api/getData";
import render from "./items.art";

// import render from "./item.art";
const zsjwUrl = "https://www.imooc.com/api/mall-PC/index/special_subject";
const zsjPanel = document.querySelector("#zsjPanel");

getData(zsjwUrl)
  .then((res) => {
    // console.log(res);
    const html = render(res);
    zsjPanel.innerHTML = html;
  })
  .catch((err) => console.log(err));
